package com.qyhl.webtv.module_live.teletext.nanbu.fragment;

import com.qyhl.webtv.commonlib.entity.live.TeleTextBean;

import java.util.List;

public class NanBuLivePresenter implements NanBuLiveContract.NanBuLivePresenter {
    private NanBuLiveContract.NanBuLiveView mView;
    private NanBuLiveModel mModel;

    public NanBuLivePresenter(NanBuLiveContract.NanBuLiveView mView) {
        this.mView = mView;
        this.mModel = new NanBuLiveModel(this);
    }

    @Override
    public void getList(String tagId, String sceneId) {
        mModel.getList(tagId, sceneId);
    }

    @Override
    public void setData(List<TeleTextBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
